package com.routz.wxarticlelist.demo.wx_util.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 微信公众号公共属性
 * </p>
 *
 * @author nieqiurong
 * @since 2019-02-21
 */
public class WxConfig extends Model<WxConfig> {

    private static final long serialVersionUID = 1L;

    private String id;

    private String ticket;

    private String accessToken;

    private String preAuthCode;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTicket() {
        return ticket;
    }

    public void setTicket(String ticket) {
        this.ticket = ticket;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public String getPreAuthCode() {
        return preAuthCode;
    }

    public void setPreAuthCode(String preAuthCode) {
        this.preAuthCode = preAuthCode;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "WxConfig{" +
        "id=" + id +
        ", ticket=" + ticket +
        ", accessToken=" + accessToken +
        ", preAuthCode=" + preAuthCode +
        "}";
    }
}
